package company.zuiyou;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Z3 {

    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(2011, 7, 1, 0, 0, 0);
        Calendar calendar1 = Calendar.getInstance();
        calendar1.set(2020, 6, 20, 10, 10, 10);
        System.out.println(calendar.getTimeInMillis());
        System.out.println(calendar1.getTimeInMillis());
        System.out.println(calendar1.getTimeInMillis() - calendar.getTimeInMillis());
    }
}
